<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>BeginCode编程学习社区</title>

    <!-- Bootstrap -->
    <link href="${rc.contextPath}/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="${rc.contextPath}/js/jquery-3.3.1.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="${rc.contextPath}/js/bootstrap.min.js"></script>
    <link href="${rc.contextPath}/app_css/home_page.css" rel="stylesheet">
</head>
<body>
<!-- 导航开始 -->
<#include "common/nav.ftl">
<#include "common/carousel.ftl">

<!-- 轮播结束 -->
<div class="container">
    <div class="row">
        <div class="col-md-12" id="recommend" style="display: none;" >
            <div class="data_list">
                <#--<div class="data_list_title" style="color: red"><img src="icon/top2.png"/>每日好文</div>-->
                <div class="datas">
                    <ul>
                        <li style="margin-bottom: 30px">
                            <span class="summary"><font
                                    style="color: red; font-weight: bold;font-size: 18px">今日推荐:</font>
                                <span id="recommentInfo">

                                </span>
                            </span>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

    <#list homeInfos as blogType>

        <#if blogType_index==3>

            <div class="col-md-12" style="padding-top: 10px; padding-bottom: 0px">
                <div class="jumbotron"
                     style="background-color: #663366;color: #fff;padding-top: 10px;padding-bottom: 10px">
                    <div class="container">
                        <h1 style="font-size: 40px">加入我们</h1>
                        <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;指导你如何自学，并掌握一门开发技术 ，
                            帮你解答自学过程中的疑惑！QQ群:5369686 </p>
                    </div>
                </div>
            </div>

        </#if>

        <#if blogType_index lte 5>
            <div class="col-md-4">
                <div class="data_list">
                    <div class="data_list_title"><img src="${blogType.icon}"/><a
                            href="${rc.contextPath}/blog/type/${blogType.homeTypeId}/0">${blogType.homeTypeName}</a>
                    </div>
                    <div class="datas">
                        <ul>
                            <#list blogType.blogBaseInfos as blog>
                                <li>
                                    <span><a
                                            href="${rc.contextPath}/blog/view/${blog.blogId}">${blog.blogTitle}</a></span>
                                    <span class="view">${blog.cDate?string('dd/MM')}</span>
                                </li>
                            </#list>
                        </ul>
                    </div>
                </div>
            </div>
        </#if>

        <#if blogType_index gt 5>
            <div class="col-md-6">
                <div class="data_list">
                    <div class="data_list_title"><img src="${blogType.icon}"/><a
                            href="${rc.contextPath}/blog/type/${blogType.homeTypeId}/0">${blogType.homeTypeName}</a>
                    </div>
                    <div class="datas">
                        <ul>
                            <#list blogType.blogBaseInfos as blog>
                                <li>
                                    <span><a href="${rc.contextPath}/blog/view/${blog.blogId}">${blog.blogTitle}</a></span>
                                    <span class="view">${blog.cDate?string('dd/MM')}</span>
                                </li>
                            </#list>
                        </ul>
                    </div>
                </div>
            </div>
        </#if>
    </#list>
    </div>

</div>
<hr>
<#include "common/foot.ftl">
</body>
<#assign ctx=rc.contextPath+"/" />
<script type="text/javascript">
    $(document).ready(function () {
        recommend("${ctx}",null);
    });
</script>
<script src="${rc.contextPath}/app_js/recommend.js?t=201808-5"></script>
</html>